﻿#ifndef CONFIG_H
#define CONFIG_H

#include <QObject>
#include <QSettings>
#include <QDebug>

class System;
class Database;
class Serial;

class Config : public QObject
{
    Q_OBJECT

public:
    explicit Config(QObject *parent = nullptr);

signals:
    void Update();

public slots:
    void LoadConfig();
    void SaveConfig();

public:
    QSettings       *setting;

    System          *system;
    Database        *database;
    Serial          *serial;
};

#endif // CONFIG_H
